package com.example.biketask.dao;

import com.example.biketask.pojo.ZoomOperation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.type.JdbcType;

@Mapper
public interface Opt2Mapper {

    @Results(id = "Bt03Map", value = {
            @Result(property = "optId", column = "opt_id", jdbcType = JdbcType.INTEGER),
            @Result(property = "start", column = "zoom_start_level", jdbcType = JdbcType.DOUBLE),
            @Result(property = "end", column = "zoom_end_level", jdbcType = JdbcType.DOUBLE),
    })


    /*
    curd bt_03表
     */
    @Insert("insert into bt_03(opt_id,zoom_start_level,zoom_end_level) values(#{optId},#{start},#{end})")
    int insert_bt_03(ZoomOperation zoomOperation);
}
